  <?php if(!empty($id)) { ?>
 <form action="<?= $member_base_url; ?>upload_form/edit/<?=$id;?>/<?php echo $cur_page;?>" method="post" id="course_form" enctype="multipart/form-data">
 <?php } else { ?>
 <form action="<?= $member_base_url; ?>student/myaccount/<?= $cur_page;?>" method="post" id="course_form" enctype="multipart/form-data">
 <?php } ?>
 <br/>
 <?php
 if(!empty($err1))
 {
	 echo "$err1"."<br/>";
 }
 if(!empty($err2))
 {
	 echo "$err2"."<br/>";
 }
 if(!empty($err3))
 {
	 echo "$err3"."<br/>";
 }
 if(!empty($err4))
 {
	 echo "$err4"."<br/>";
 }
 ?>
<table  id="tblform">
<tbody>
<tr><td colspan="02" align="center" style="font-size:16px; font-weight:900; padding-bottom:15px;">Edit Profile</td></tr>
	<tr>
	<tr>
		<td> Name</td>
		<td><input class="txt" type="text" name="name" value="<?php echo $student['name'];?>" />
         <input type="hidden" name="password" value="<?php echo $student['password'];?>"/></td>
	</tr>
    <tr>
		<td>Gender</td>
		<td><input type="radio" value="male" name="gender" <?php if($student['gender']=='male') echo "checked"; ?>/>Male <input type="radio" value="female" name="gender" <?php if($student['gender']=='female') echo "checked"; ?>/> Female</td>
	</tr>
    <tr>
		<td> Type</td>
		<td> 
        <select name="type" class="txt">
         <option <?php if($student['type']=='student') echo "selected"; ?>> student </option>
         <option <?php if($student['type']=='employee') echo "selected"; ?> > employee </option>
          </select>
        </td>
	</tr>
    <tr>
		<td> EmailID</td>
		<td><input class="txt" type="text" name="email_id" value="<?php echo $student['email_id'];?>" /></td>
	</tr>
    <tr>
		<td> Mobile</td>
		<td><input class="txt" type="text" name="mobile" value="<?php echo $student['mobile'];?>" /></td>
	</tr>
      <tr>
		<td> Resume</td>
		<td><input class="txt" type="file" name="resume"/></td>
	</tr>
    <tr>
		<td> Photo</td>
		<td><input class="txt" type="file" name="photo"/></td>
	</tr>
     <tr>
		<td> Address </td>
		<td><textarea class="txt" name="address"> <?php echo $student['address'];?> </textarea></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>     
			<div class="buttons">
			    <button type="submit" name="save" class="submit" value="save" >
			        <img src="<?php echo $member_image_path?>icons/apply.png" alt=""/>
			          <?php if(!empty($id)) { ?>
 							Update 
 							<input type="hidden" name="id" value="<?php echo $id;?>" />
                       
 							<input  type="hidden" name="rurl" value="<?php echo $rurl;?>" />
 					  <?php } else { ?>
 					  	Update 
 					  	<?php } ?>

 			    </button>
			   <a href="<?= $member_base_url; ?>student/account" class="negative">
			        <img src="<?php echo $member_image_path?>icons/cross.png" alt=""/>
			        Cancel
			   </a>
			</div>
		</td>
	</tr>
</tbody>
</table>
 </form>
 <script>
 $(document).ready(function() {
     $("#course_form").RSV({
       onCompleteHandler: frmSubmit,
       errorFieldClass: "errorDesc",
       displayType: "display-html",
       errorHTMLItemBullet: "&#8212; ",
             rules: [
                     "required,name,Please enter name."
             ]
     });
  // a custom onComplete handler to prevent form submits for the demo
     function frmSubmit()
     {
       return true;
     }

        
});
 </script>